package com.example.demo.mp.entity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.core.base.BizEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 组件模板引用
 * </p>
 *
 * @author JXY
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("reach_template")
public class ReachTemplateEntity extends BizEntity<ReachTemplateEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 组件id 为0 系统组件的模板
     */
    @TableField("reach_id")
    private Long reachId;

    /**
     * 组件类型(冗余):ReachTypeEnum
     */
    @TableField("reach_type")
    private Integer reachType;

    /**
     * 模板名称
     */
    @TableField("name")
    private String name;

    /**
     * 模板参数
     */
    @TableField("template")
    private String template;

    /**
     * 模板变量json
     */
    @TableField("variables")
    private String variables;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
